package com.example.myapplication.homesosuo;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

public class SearchListView extends ListView {
    public SearchListView(Context context) {

        super(context);
    }

    public SearchListView(Context context, AttributeSet attrs){
        super(context,attrs);
    }
    public SearchListView(Context context,AttributeSet attrs, int defstyle){
    super(context,attrs,defstyle);

    }
    @Override
    protected  void onMeasure(int widthMeasureSpec, int heightMeasureSpec){
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,
                MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }
}
